import request from '@/utils/request';

export async function getEnergyInfoByPage (params: any) {
    return request('/api/EnergyInfo/getEnergyInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addEnergyInfo (params: any) {
    return request('/api/EnergyInfo/addEnergyInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateEnergyInfo (params: any) {
    return request('/api/EnergyInfo/updateEnergyInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delEnergyInfo (params: any) {
    return request('/api/EnergyInfo/delEnergyInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportEnergyInfo(params: any) {
    return request('/api/EnergyInfo/exportEnergyInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getEnergyInfoByPage, addEnergyInfo, updateEnergyInfo, delEnergyInfo, exportEnergyInfo }
